package com.data.modules.openapi.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 *  openApi 配置类
 *
 * @author: cmg
 * @since: 2022-04-06 15:27
 **/

@Component
@ConfigurationProperties(prefix="open.magic")
@Data
public class OpenApiConfig {

    /**
     * 开放路径
     */
    private List<String> openApi;
    /**
     * 过期时间 单位秒
     */
    private int expireTime;
    /**
     * 指定时间内的限制次数
     */
    private int count;
    /**
     * 限制同一请求的时长
     */
    private int sameTime;
}
